//导入axios工具包
import instance from '@/utils/axios.js'

//1.登录接口
function userLogin(username,password){
    return instance({
        url:'/admin/user/login',
        method:'post',
        data:{username,password}
    })
}
//导出接口
export {userLogin}

//2.编辑用户信息
function userEditInfo(fd){
    return instance({
        url:'/admin/user/edit',
        method:'post',
        data:fd
    })
}
//导出接口
export {userEditInfo}